<template>
  <div >
    <div style="background-color: white;margin-left:-18px;margin-right:-18px;margin-top:-18px">
      <div style="padding: 18px;display: none">
        <div class="workbench">工作台</div>
        <el-row>
          <el-col :span="16" style="padding-left: 16px;padding-bottom: 20px">
            <img :src="require('../assets/head_110.png')" style="float: left;margin-right: 36px"/>
            <div style="float: left">
              <div class="greeting" >早安，{{$root.user.realName}},祝你开心每一天！  </div>
             <div class="dept">公司职务 | 一级部门 - 二级部门 - 三级部门 </div>
            </div>
          </el-col>
          <el-col :span="4" class="textRight mt7">
            <div class="smallTitle "><span class="grayBottom" >绩效排名</span></div>
            <div><span class="bigNum">8</span><span class="smallNum">/24</span></div>
          </el-col>
          <el-col :span="4" class="textRight mt7">
            <div class="smallTitle "><span class="grayBottom">访问量</span></div>
            <div class="bigNum" style="margin-top: 0">1,223</div>
          </el-col>
        </el-row>
      </div>
    </div>
    <div class="mainDiv">
          <el-row v-for="(block, index) in blocks" :key="index" :gutter="30" style="margin-bottom: 30px;">
            <el-col :span="8" v-for="item in block"  :key="item.name">
              <el-link :underline="false" @click="goto(item.path)"  class="block">
                <div class="imgTitle"><img :src="item.icon"/>
                  <h3 class="name">{{item.name+"综合信息平台"}}</h3>
                </div>
                <p>
                  {{content}}
                </p>
              </el-link>
            </el-col>
          </el-row>
      <!--  <el-col :span="6" >
          <el-row style="background-color: white">
            <div class="subTitle">快速开始 / 便捷导航</div>
            <div style="height: 520px">
              <ol style="padding-top: 16px">
                <li>网站名称1衔接</li>
                <li>网站名称1衔接</li>
                <li>网站名称1衔接</li>
                <li>网站名称1衔接</li>
                <li>网站名称1衔接</li>
                <li>网站名称1衔接</li>
                <li>网站名称1衔接</li>
                <li>网站名称1衔接</li>
              </ol>
            </div>
          </el-row>
        </el-col>-->
    </div>
  </div>
</template>

<script>
  const blocks=[[{name:"多证合一",icon:require('../assets/icon_certificate.png'),content:"",path:"http://xxgx.egs.gov.cn/hbxtjg/meta/CommonData/public/login/login.ftl?redirectUrl=/meta/xtjg/analyses/portal/portal/portal;jsessionid%3D976E2053D05DDEFC2A82DAEA1E2A18EE?resid%3D6306463772"},
    {name:"多规合一",content:"",icon:require('../assets/icon_order.png'),path:"http://10.28.20.1/hurd/authentication/require"},
    {name:"多审合一",content:"",icon:require('../assets/icon_judge.png') ,path:"http://219.139.130.116:8888/yctsms/o2o/"}
  ],[{name:"多评合一",content:"",icon:require('../assets/icon_review.png'),path:"/evaluateProject"},
    {name:"多验合一",content:"",icon:require('../assets/icon_check.png'),path:"/checkGuide"},
    {name:"多管合一",content:"",icon:require('../assets/icon_manage.png'), path:"http://"+location.hostname+":7000/index.html#/order"}]];
  export default {
    name: "Welcome",
    data(){
      return{
        blocks:blocks,
        content:""
      }
    },
    methods:{
    }
  }
</script>

<style scoped>
  .workbench{
    padding-left: 14px;
    height:40px;
    font-size:28px;
    font-weight:600;
    color:rgba(51,51,51,1);
    line-height:40px;
    margin-bottom: 20px;
  }
  .greeting{
    font-size:28px;
    font-weight:600;
    color:rgba(51,51,51,1);
    line-height:40px;
    margin-top: 7px;
  }
  .dept{
    margin-top: 25px;
    font-weight:400;
    color:rgba(136,136,136,1);
    line-height:36px;
  }
  .smallTitle{
    height:28px;
    font-size:20px;
    font-weight:400;
    color:rgba(136,136,136,1);
    line-height:36px;
    padding-bottom: 10px;
  }
  .bigNum{
    height:50px;
    font-size:36px;
    font-weight:400;
    color:rgba(51,51,51,1);
    line-height:64px;
  }
  .smallNum{
    height:33px;
    font-size:24px;
    font-weight:400;
    color:rgba(51,51,51,1);
    line-height:43px;
  }
  .mainDiv{
    background-color: #F0F2F5;
    padding-top: 18px;
  }
  .mainDiv .subTitle{
    padding-left: 38px;
    font-size:24px;
    font-weight:600;
    color:rgba(51,51,51,1);
    line-height:90px;
    height:90px;
    background:rgba(255,255,255,1);
    border-bottom: 1px solid lightgrey;
    white-space: nowrap;
  }
  .block{
    background-color: white;
    border-right:1px solid lightgrey;
    border-bottom:1px solid lightgrey;
    height: 220px;
    width: 100%;
    white-space: nowrap;
  }
  .block:hover{
    left: -3px;
    top: -3px;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.2);
    border: 1px solid rgba(234,234,234,1);
    z-index: 1;
  }
  .block>p{
    font-size:20px;
    font-weight:400;
    color:rgba(136,136,136,1);
    line-height:34px;
  }

  .block .imgTitle{
    font-size:20px;
    font-weight:400;
    line-height:90px;
  }
  .block .imgTitle>img{
    vertical-align: middle;
    margin-right: 60px;
    width: 90px;
  }
  .block .name{
    display: inline-block;
    white-space: nowrap;
  }
  ol>li{
    font-size:20px;
    font-weight:400;
    color:rgba(89,89,89,1);
    line-height:60px;
  }
  .grayBottom{
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom:1px solid lightgrey;
  }

</style>
